package com.wct.mall.service;

import com.wct.mall.domain.ValidBean;
import com.wct.mall.util.BeanValidator;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author WEI
 * @date 2020/3/24
 */
@Service
@Slf4j
public class ValidService {

    public void save1(ValidBean param) {
        BeanValidator.check(param);
        log.info("save1 : {}", param);
    }

    public void save2(ValidBean param) {
//        BeanValidator.check(param);
        log.info("save2 : {}", param);
    }
}
